import { newRequest } from '@/utils/newRequest'

//扫描产品
export function scanGridProduct(data) {
    return newRequest({
        url: '/api/Doing/ScanGridProduct',
        method: 'post',
        data: {
            ...data
        }
    })
}
// 获取区域格子列表
export function getGridAreaList(params) {
    return newRequest({
        url: '/api/Doing/GetGridAreaList',
        method: 'get',
        params: {
            ...params
        }
    })
}
// 获取格子列表
export function getGridList(params) {
    return newRequest({
        url: '/api/Doing/GetGridList',
        method: 'get',
        params: {
            ...params
        }
    })
}
// 清空格子
export function cleanGrid(data) {
    return newRequest({
        url: '/api/Doing/CleanGrid',
        method: 'post',
        data: {
            ...data
        }
    })
}
// 查询格子详情
export function getGridDetailByGridId(params) {
    return newRequest({
        url: '/api/Doing/GetGridDetailByGridId',
        method: 'get',
        params: {
            ...params
        }
    })
}

//可过站订单
export function getOrderBagOfFullBoard(params) {
    return newRequest({
        url: '/api/Doing/GetOrderBagOfFullBoard',
        method: 'get',
        params: {
            ...params
        }
    })
}

// 产品分拣-订单过站
export function commitTechOrderByTechType(data) {
    return newRequest({
        url: '/api/Doing/CommitTechOrderByTechType',
        method: 'post',
        data: {
            ...data
        }
    })
}


// 格子打印详情
export function getGridDOfPrintInfoByGridId(params) {
    return newRequest({
        url: '/api/Doing/GetGridDOfPrintInfoByGridId',
        method: 'get',
        params: {
            ...params
        }
    })
}